
import Layout from '@/views/layout/Layout'

const cost_manage = {
  path: '/cost_manage',
  component: Layout,
  redirect: '/cost_manage/buyed_account',
  name: 'cost_manage',
  meta: { title: '成本管理', roles: ['1', '17', '18'], icon: 'cost-o' },
  children: [
    {
      path: 'buyed_account',
      name: 'cost_manage.buyed_account',
      component: () => import('@/views/cost_manage/buyed_account/index'),
      meta: { title: '买号管理', icon: 'subsystem', fullPath: '/cost_manage/buyed_account' }
    },
    {
      path: 'buyed_account/contract',
      name: 'cost_manage.buyed_account.contract',
      hidden: true,
      component: () => import('@/views/cost_manage/buyed_account/contract'),
      meta: { listPath: '/cost_manage/buyed_account' }
    },
    {
      path: 'buyed_quantity',
      name: 'cost_manage.buyed_quantity',
      component: () => import('@/views/cost_manage/buyed_quantity/index'),
      meta: { title: '买量管理', icon: 'subsystem', fullPath: '/cost_manage/buyed_quantity' }
    },
    {
      path: 'buyed_quantity/contract/',
      name: 'cost_manage.buyed_quantity.contract',
      hidden: true,
      component: () => import('@/views/cost_manage/buyed_quantity/contract'),
      meta: { listPath: '/cost_manage/buyed_quantity' }
    }

  ]
}

export default cost_manage
